import 'package:flutter/material.dart';
import 'package:shen_nai/pages/login/view/login_view.dart';

//登录界面
class LoginPage extends StatefulWidget {
  const LoginPage({Key? key}) : super(key: key);

  @override
  State<LoginPage> createState() => _LoginPageState();
}

class _LoginPageState extends State<LoginPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomInset: false,
      body: Container(
        alignment: Alignment.center,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            SizedBox(
              height: MediaQuery.of(context).padding.top + 64,
            ),
            Image.asset(
              'assets/images/login_logo.png',
              height: 80,
            ),
            const LoginView(),
            const Expanded(child: SizedBox()),
            const Text(
              '© 2021 YHBFa business services Co.,Ltd. ',
              style: TextStyle(fontSize: 8, color: Colors.white),
            ),
            const SizedBox(
              height: 30,
            )
          ],
        ),
      ),
    );
  }
}
